Optimal. Leaf size=158 \[ -\frac {a^3 \tanh ^{-1}(\cosh (c+d x))}{d}-\frac {b \left (3 a^2+3 a b+b^2\right ) \cosh (c+d x)}{d}+\frac {b \left (3 a^2+9 a b+5 b^2\right ) \cosh ^3(c+d x)}{3 d}-\frac {b^2 (9 a+10 b) \cosh ^5(c+d x)}{5 d}+\frac {b^2 (3 a+10 b) \cosh ^7(c+d x)}{7 d}-\frac {5 b^3 \cosh ^9(c+d x)}{9 d}+\frac {b^3 \cosh ^{11}(c+d x)}{11 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 158, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3294, 1167,
212} \begin {gather*} -\frac {a^3 \tanh ^{-1}(\cosh (c+d x))}{d}+\frac {b \left (3 a^2+9 a b+5 b^2\right ) \cosh ^3(c+d x)}{3 d}-\frac {b \left (3 a^2+3 a b+b^2\right ) \cosh (c+d x)}{d}+\frac {b^2 (3 a+10 b) \cosh ^7(c+d x)}{7 d}-\frac {b^2 (9 a+10 b) \cosh ^5(c+d x)}{5 d}+\frac {b^3 \cosh ^{11}(c+d x)}{11 d}-\frac {5 b^3 \cosh ^9(c+d x)}{9 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 1167
Rule 3294
Rubi steps
\begin {align*} \int \text {csch}(c+d x) \left (a+b \sinh ^4(c+d x)\right )^3 \, dx &=-\frac {\text {Subst}\left (\int \frac {\left (a+b-2 b x^2+b x^4\right )^3}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {\text {Subst}\left (\int \left (b \left (3 a^2+3 a b+b^2\right )-b \left (3 a^2+9 a b+5 b^2\right ) x^2+b^2 (9 a+10 b) x^4-b^2 (3 a+10 b) x^6+5 b^3 x^8-b^3 x^{10}+\frac {a^3}{1-x^2}\right ) \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {b \left (3 a^2+3 a b+b^2\right ) \cosh (c+d x)}{d}+\frac {b \left (3 a^2+9 a b+5 b^2\right ) \cosh ^3(c+d x)}{3 d}-\frac {b^2 (9 a+10 b) \cosh ^5(c+d x)}{5 d}+\frac {b^2 (3 a+10 b) \cosh ^7(c+d x)}{7 d}-\frac {5 b^3 \cosh ^9(c+d x)}{9 d}+\frac {b^3 \cosh ^{11}(c+d x)}{11 d}-\frac {a^3 \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {a^3 \tanh ^{-1}(\cosh (c+d x))}{d}-\frac {b \left (3 a^2+3 a b+b^2\right ) \cosh (c+d x)}{d}+\frac {b \left (3 a^2+9 a b+5 b^2\right ) \cosh ^3(c+d x)}{3 d}-\frac {b^2 (9 a+10 b) \cosh ^5(c+d x)}{5 d}+\frac {b^2 (3 a+10 b) \cosh ^7(c+d x)}{7 d}-\frac {5 b^3 \cosh ^9(c+d x)}{9 d}+\frac {b^3 \cosh ^{11}(c+d x)}{11 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.28, size = 139, normalized size = 0.88 \begin {gather*} \frac {-20790 b \left (384 a^2+280 a b+77 b^2\right ) \cosh (c+d x)+6930 b (8 a+5 b) (16 a+11 b) \cosh (3 (c+d x))-2079 b^2 (112 a+55 b) \cosh (5 (c+d x))+495 b^2 (48 a+55 b) \cosh (7 (c+d x))-4235 b^3 \cosh (9 (c+d x))+315 b^3 \cosh (11 (c+d x))+3548160 a^3 \log \left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )}{3548160 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(532\) vs.
\(2(148)=296\).
time = 1.35, size = 533, normalized size = 3.37
method | result | size |
risch | \(-\frac {21 a \,b^{2} {\mathrm e}^{5 d x +5 c}}{640 d}+\frac {21 a \,b^{2} {\mathrm e}^{3 d x +3 c}}{128 d}+\frac {a^{3} \ln \left ({\mathrm e}^{d x +c}-1\right )}{d}-\frac {a^{3} \ln \left ({\mathrm e}^{d x +c}+1\right )}{d}-\frac {9 b \,{\mathrm e}^{d x +c} a^{2}}{8 d}-\frac {11 b^{3} {\mathrm e}^{9 d x +9 c}}{18432 d}-\frac {33 \,{\mathrm e}^{5 d x +5 c} b^{3}}{2048 d}+\frac {55 \,{\mathrm e}^{3 d x +3 c} b^{3}}{1024 d}+\frac {b^{3} {\mathrm e}^{11 d x +11 c}}{22528 d}-\frac {11 b^{3} {\mathrm e}^{-9 d x -9 c}}{18432 d}+\frac {b^{3} {\mathrm e}^{-11 d x -11 c}}{22528 d}-\frac {105 a \,{\mathrm e}^{-d x -c} b^{2}}{128 d}+\frac {21 a \,b^{2} {\mathrm e}^{-3 d x -3 c}}{128 d}-\frac {231 b^{3} {\mathrm e}^{d x +c}}{1024 d}-\frac {231 b^{3} {\mathrm e}^{-d x -c}}{1024 d}+\frac {55 b^{3} {\mathrm e}^{-3 d x -3 c}}{1024 d}+\frac {55 b^{3} {\mathrm e}^{7 d x +7 c}}{14336 d}-\frac {21 a \,b^{2} {\mathrm e}^{-5 d x -5 c}}{640 d}-\frac {33 \,{\mathrm e}^{-5 d x -5 c} b^{3}}{2048 d}+\frac {55 b^{3} {\mathrm e}^{-7 d x -7 c}}{14336 d}-\frac {105 a \,{\mathrm e}^{d x +c} b^{2}}{128 d}-\frac {9 \,{\mathrm e}^{-d x -c} a^{2} b}{8 d}+\frac {{\mathrm e}^{-3 d x -3 c} a^{2} b}{8 d}+\frac {3 b^{2} {\mathrm e}^{7 d x +7 c} a}{896 d}+\frac {3 b^{2} {\mathrm e}^{-7 d x -7 c} a}{896 d}+\frac {{\mathrm e}^{3 d x +3 c} a^{2} b}{8 d}\) | \(446\) |
default | \(\frac {-6 a \,b^{2} \arctanh \left ({\mathrm e}^{d x +c}\right )-6 a^{2} b \arctanh \left ({\mathrm e}^{d x +c}\right )-2 a^{3} \arctanh \left ({\mathrm e}^{d x +c}\right )-2 b^{3} \arctanh \left ({\mathrm e}^{d x +c}\right )+3 a \,b^{2} \left (\frac {\left (\cosh ^{7}\left (d x +c \right )\right )}{7}+\frac {\left (\cosh ^{5}\left (d x +c \right )\right )}{5}+\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{3}+\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )-12 a \,b^{2} \left (\frac {\left (\cosh ^{5}\left (d x +c \right )\right )}{5}+\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{3}+\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )+3 a^{2} b \left (\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{3}+\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )+18 a \,b^{2} \left (\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{3}+\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )-6 a^{2} b \left (\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )-12 a \,b^{2} \left (\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )-6 b^{3} \left (\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )+b^{3} \left (\frac {\left (\cosh ^{11}\left (d x +c \right )\right )}{11}+\frac {\left (\cosh ^{9}\left (d x +c \right )\right )}{9}+\frac {\left (\cosh ^{7}\left (d x +c \right )\right )}{7}+\frac {\left (\cosh ^{5}\left (d x +c \right )\right )}{5}+\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{3}+\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )-6 b^{3} \left (\frac {\left (\cosh ^{9}\left (d x +c \right )\right )}{9}+\frac {\left (\cosh ^{7}\left (d x +c \right )\right )}{7}+\frac {\left (\cosh ^{5}\left (d x +c \right )\right )}{5}+\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{3}+\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )+15 b^{3} \left (\frac {\left (\cosh ^{7}\left (d x +c \right )\right )}{7}+\frac {\left (\cosh ^{5}\left (d x +c \right )\right )}{5}+\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{3}+\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )-20 b^{3} \left (\frac {\left (\cosh ^{5}\left (d x +c \right )\right )}{5}+\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{3}+\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )+15 b^{3} \left (\frac {\left (\cosh ^{3}\left (d x +c \right )\right )}{3}+\cosh \left (d x +c \right )-2 \arctanh \left ({\mathrm e}^{d x +c}\right )\right )}{d}\) | \(533\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 327 vs.
\(2 (148) = 296\).
time = 0.28, size = 327, normalized size = 2.07 \begin {gather*} -\frac {1}{1419264} \, b^{3} {\left (\frac {{\left (847 \, e^{\left (-2 \, d x - 2 \, c\right )} - 5445 \, e^{\left (-4 \, d x - 4 \, c\right )} + 22869 \, e^{\left (-6 \, d x - 6 \, c\right )} - 76230 \, e^{\left (-8 \, d x - 8 \, c\right )} + 320166 \, e^{\left (-10 \, d x - 10 \, c\right )} - 63\right )} e^{\left (11 \, d x + 11 \, c\right )}}{d} + \frac {320166 \, e^{\left (-d x - c\right )} - 76230 \, e^{\left (-3 \, d x - 3 \, c\right )} + 22869 \, e^{\left (-5 \, d x - 5 \, c\right )} - 5445 \, e^{\left (-7 \, d x - 7 \, c\right )} + 847 \, e^{\left (-9 \, d x - 9 \, c\right )} - 63 \, e^{\left (-11 \, d x - 11 \, c\right )}}{d}\right )} - \frac {3}{4480} \, a b^{2} {\left (\frac {{\left (49 \, e^{\left (-2 \, d x - 2 \, c\right )} - 245 \, e^{\left (-4 \, d x - 4 \, c\right )} + 1225 \, e^{\left (-6 \, d x - 6 \, c\right )} - 5\right )} e^{\left (7 \, d x + 7 \, c\right )}}{d} + \frac {1225 \, e^{\left (-d x - c\right )} - 245 \, e^{\left (-3 \, d x - 3 \, c\right )} + 49 \, e^{\left (-5 \, d x - 5 \, c\right )} - 5 \, e^{\left (-7 \, d x - 7 \, c\right )}}{d}\right )} + \frac {1}{8} \, a^{2} b {\left (\frac {e^{\left (3 \, d x + 3 \, c\right )}}{d} - \frac {9 \, e^{\left (d x + c\right )}}{d} - \frac {9 \, e^{\left (-d x - c\right )}}{d} + \frac {e^{\left (-3 \, d x - 3 \, c\right )}}{d}\right )} + \frac {a^{3} \log \left (\tanh \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 3824 vs.
\(2 (148) = 296\).
time = 0.43, size = 3824, normalized size = 24.20 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 377 vs.
\(2 (148) = 296\).
time = 0.54, size = 377, normalized size = 2.39 \begin {gather*} \frac {315 \, b^{3} e^{\left (11 \, d x + 11 \, c\right )} - 4235 \, b^{3} e^{\left (9 \, d x + 9 \, c\right )} + 23760 \, a b^{2} e^{\left (7 \, d x + 7 \, c\right )} + 27225 \, b^{3} e^{\left (7 \, d x + 7 \, c\right )} - 232848 \, a b^{2} e^{\left (5 \, d x + 5 \, c\right )} - 114345 \, b^{3} e^{\left (5 \, d x + 5 \, c\right )} + 887040 \, a^{2} b e^{\left (3 \, d x + 3 \, c\right )} + 1164240 \, a b^{2} e^{\left (3 \, d x + 3 \, c\right )} + 381150 \, b^{3} e^{\left (3 \, d x + 3 \, c\right )} - 7983360 \, a^{2} b e^{\left (d x + c\right )} - 5821200 \, a b^{2} e^{\left (d x + c\right )} - 1600830 \, b^{3} e^{\left (d x + c\right )} - 7096320 \, a^{3} \log \left (e^{\left (d x + c\right )} + 1\right ) + 7096320 \, a^{3} \log \left ({\left | e^{\left (d x + c\right )} - 1 \right |}\right ) - {\left (7983360 \, a^{2} b e^{\left (10 \, d x + 10 \, c\right )} + 5821200 \, a b^{2} e^{\left (10 \, d x + 10 \, c\right )} + 1600830 \, b^{3} e^{\left (10 \, d x + 10 \, c\right )} - 887040 \, a^{2} b e^{\left (8 \, d x + 8 \, c\right )} - 1164240 \, a b^{2} e^{\left (8 \, d x + 8 \, c\right )} - 381150 \, b^{3} e^{\left (8 \, d x + 8 \, c\right )} + 232848 \, a b^{2} e^{\left (6 \, d x + 6 \, c\right )} + 114345 \, b^{3} e^{\left (6 \, d x + 6 \, c\right )} - 23760 \, a b^{2} e^{\left (4 \, d x + 4 \, c\right )} - 27225 \, b^{3} e^{\left (4 \, d x + 4 \, c\right )} + 4235 \, b^{3} e^{\left (2 \, d x + 2 \, c\right )} - 315 \, b^{3}\right )} e^{\left (-11 \, d x - 11 \, c\right )}}{7096320 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.65, size = 326, normalized size = 2.06 \begin {gather*} \frac {{\mathrm {e}}^{-3\,c-3\,d\,x}\,\left (128\,a^2\,b+168\,a\,b^2+55\,b^3\right )}{1024\,d}-\frac {2\,\mathrm {atan}\left (\frac {a^3\,{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\sqrt {-d^2}}{d\,\sqrt {a^6}}\right )\,\sqrt {a^6}}{\sqrt {-d^2}}+\frac {{\mathrm {e}}^{3\,c+3\,d\,x}\,\left (128\,a^2\,b+168\,a\,b^2+55\,b^3\right )}{1024\,d}-\frac {11\,b^3\,{\mathrm {e}}^{-9\,c-9\,d\,x}}{18432\,d}-\frac {11\,b^3\,{\mathrm {e}}^{9\,c+9\,d\,x}}{18432\,d}+\frac {b^3\,{\mathrm {e}}^{-11\,c-11\,d\,x}}{22528\,d}+\frac {b^3\,{\mathrm {e}}^{11\,c+11\,d\,x}}{22528\,d}-\frac {3\,b\,{\mathrm {e}}^{-c-d\,x}\,\left (384\,a^2+280\,a\,b+77\,b^2\right )}{1024\,d}+\frac {b^2\,{\mathrm {e}}^{-7\,c-7\,d\,x}\,\left (48\,a+55\,b\right )}{14336\,d}+\frac {b^2\,{\mathrm {e}}^{7\,c+7\,d\,x}\,\left (48\,a+55\,b\right )}{14336\,d}-\frac {3\,b^2\,{\mathrm {e}}^{-5\,c-5\,d\,x}\,\left (112\,a+55\,b\right )}{10240\,d}-\frac {3\,b^2\,{\mathrm {e}}^{5\,c+5\,d\,x}\,\left (112\,a+55\,b\right )}{10240\,d}-\frac {3\,b\,{\mathrm {e}}^{c+d\,x}\,\left (384\,a^2+280\,a\,b+77\,b^2\right )}{1024\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________